package com.ayoka.parenting.ui.group.topic.publish;

import android.support.v4.app.FragmentManager;

import com.ayoka.parenting.bean.PublishTopicBean;
import com.ayoka.parenting.interf.RequestCallback;
import com.ayoka.parenting.mvp.BasePresenter;
import com.ayoka.parenting.mvp.BaseView;

import java.io.File;
import java.util.List;

/**
 * @ProjectName: MVPPlugin.
 * @ClassName: PublishTopicContract.
 * @Description: .
 * @Author: jincp.
 * @CreateDate: 2019/10/10 18:17.
 */
public class PublishTopicContract {

    interface View extends BaseView {
        void onPickPhotoItemClick(int itemValue);

        void configCompressList(boolean isSuccess, List<String> compressedImagePathList);

        void onPublishTopicCallback(boolean isSuccess, PublishTopicBean response);
    }

    interface Presenter extends BasePresenter<View> {
        void showPickPicturePopup(FragmentManager fragmentManager);

        void publishTopic(String circleGroupId, String content, File file);
    }

    interface Model {
        void publishTopic(BasePresenter presenter, String circleGroupId, String content, File file, RequestCallback<PublishTopicBean> requestCallback);
    }
}
